<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:42:"./views/home/mobile/mytaskjoin\index.phtml";i:1626602944;s:67:"E:\Web\test.zztuku.com\public\views\home\mobile\common\header.phtml";i:1541935408;s:70:"E:\Web\test.zztuku.com\public\views\home\mobile\mytaskjoin\_list.phtml";i:1625664704;s:68:"E:\Web\test.zztuku.com\public\views\home\mobile\common\ufooter.phtml";i:1625675066;}*/ ?>
﻿<!DOCTYPE HTML>
<html>

<head>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>我参与的</title>
    <link rel="shortcut icon" href="clientapp/images/new_images/favicon.ico" />
<link href="/static/home/mobile/css/reset_5.css" rel="stylesheet" type="text/css" />
<link href="/static/home/mobile/css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/static/home/mobile/css/font-awesome.min.css">
<link href="/static/home/mobile/css/new_style.css" rel="stylesheet" type="text/css" />
<!-- 弹出层 -->
<link rel="stylesheet" href="/static/plugins/dialog/css/dialog.css" />
<script src="/static/home/mobile/js/jquery-2.0.3.min.js"></script>
<script src="/static/plugins/dialog/js/dialog.js"></script>
<!-- 弹出层 -->
<script type="text/javascript" src="/static/plugins/clipboard.min.js"></script>
<script type="text/javascript" src="/static/home/mobile/js/global.js?v=2"></script>
    <style type="text/css">
    	.task-list{
    		margin-top:10px;
    	}
        .task-list-remain-num span {
            width: 33.33%;
            float: left;
            text-align: center;
        }
        .paging {
            margin: 30px 0;
        }
        .dialog {
          position: fixed;
          left: 0;
          top: 0;
          z-index: 10001;
          width: 100%;
          height: 100%;
        }
        .dialog-content {
            width: 70%;
        }
        .dialog-overlay {
          position: absolute;
          top: 0;
          left: 0;
          z-index: 10002;
          width: 100%;
          height: 100%;
          background-color: rgba(0, 0, 0, 0.5);
        }
        
		select:focus{
			outline: none;
		}
		.zhuanghu-tab li:after, .zhuanghu-tab2 li:after{
			background-color:#fff;
		}
		.zhuanghu-tab2 li.active{
			width:16%;
			margin-left:2%;
			margin-right:2%;
			border-bottom:2px solid #80cd85;
		} 
		body{background:#111;}
.zhuanghu-tab2 li,.zhuanghu-tab2 li.libg,.zhuanghu-tab2{background:#111;color:#fff;}
.zhuanghu-tab2 li.active{background:#111;color:#2F62FF;border-bottom:2px solid #2F62FF}
.zhuanghu-tab2 li:after, .zhuanghu-tab2 li:after{background:#666;}
.new-task-list ul li,.myAttend.main{background:#000;}
.new-task-list,.task-list,.paging{background:#111;}
.paging-selct{background:#2F62FF;color:#fff;}
    </style>
</head>

<body data-offset="140" id="htmlBody">
<div class="site-header header-fixed">
    <a onclick="history.back()" class="back" style="background:none;margin-top:-10px;">
            <img style="height:24px;" src="/static/home/mobile/images/return2.png">
        </a>
    <div class="tit-name">我参与的</div>
</div>
<div class="main myAttend">
    <div class="zhuanghu-tab2" style="border-bottom:none;">
        <ul class="zh-tab-tit">
            <li id="all" class="<?php echo $category_type=='all'?'active':'libg'; ?>" onclick="location.href='/home/mytaskjoin.html'">全部</li>
            <li id="lock" class="<?php echo $category_type=='lock'?'active':'libg'; ?>" onclick="location.href='/home/mytaskjoin/category/t/lock.html'">已抢单</li>
            <li id="wait" class="<?php echo $category_type=='wait'?'active':'libg'; ?>" onclick="location.href='/home/mytaskjoin/category/t/wait.html'">待审核</li>
            <li id="pass" class="<?php echo $category_type=='pass'?'active':'libg'; ?>" onclick="location.href='/home/mytaskjoin/category/t/pass.html'">通过</li>
            <li id="nopass" class="<?php echo $category_type=='nopass'?'active':'libg'; ?>" onclick="location.href='/home/mytaskjoin/category/t/nopass.html'">不通过</li>
        </ul>
    </div>
    <div class="task-list">
        <?php if(!empty($tasks)): ?>
        <div class="new-task-list">
            	<style>
	.new-task-list ul li a,.task_button{
		width:18%;
		float:right;
		margin-left:2%;
		margin-right:2%;
		border:1px solid #bbb;
		border-radius:4px;
		line-height:30px;
		margin-bottom:5px;
		margin-top:1px;
		padding:0px 0;
		font-size:10px;
		text-align:center;
	}
	.ui-list-text li{
		border-bottom:none;
	}
	.ui-list-text li .ui-vertical *{
		line-height: 20px;
	}

		

	</style>
						<?php if(is_array($tasks) || $tasks instanceof \think\Collection || $tasks instanceof \think\Paginator): $task_index = 0; $__LIST__ = $tasks;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$task): $mod = ($task_index % 2 );++$task_index;?>
						<ul class="ui-list-text reward-icon">
								<li class="clearfix">
										<!--<i class="iconfont" style="background-image: url(<?php echo $task['avatar']; ?>);border-radius:50%;margin-top: 5px;">-->
									<i class="iconfont" style="border-radius:4px; width:60px;height:60px; ">
											<img src="<?php echo $task['avatar']; ?>" alt="" style="border-radius:4px; width:60px;height:60px; ">
									</i>
										<div class="ui-vertical" style="width:80%;">
												<div class="ui-row" style="height:20px;line-height:20px;"><span class="fr" style="color:red;">￥<?php echo $task['unit_price']; ?></span><a href="/home/task/detail/id/<?php echo $task['id']; ?>.html" style="padding: 0;border: 0;margin: 0;width: auto;float: left;font-size:14px;"><?php echo $task['title']; ?></a>
												</div>
												<p>
													<?php if($task['join_delflag'] == 2): if($task['join_status'] == 4): ?>
																<p><?php echo $task['join_create_time']; ?></p>
																<p style="color:red;font-size:14px;">超时未提交</p>
																
														<?php elseif($task['join_status'] == 1): ?>
																<span class="fr">放弃接单</span>
																
																<br>
														
														<?php else: ?>
																<span class="fr">雇主拒绝了验证</span>
																<?php echo $task['join_audit_time']; ?>
																<br>
															
															<p style="font-size:14px;">审核不通过原因：<?php echo (isset($task['join_reason']) && ($task['join_reason'] !== '')?$task['join_reason']:'无'); ?></p>

														<?php endif; else: if($task['join_status'] == 1): ?>
														<span class="fr">等待上传验证</span>
														<?php echo $task['join_create_time']; ?>
															<p style="font-size:14px;">
														抢单
														</p>
														<?php endif; if($task['join_status'] == 2): ?>
														<span class="fr">等待雇主审核</span>
														<?php echo $task['join_create_time']; ?>
														<p style="font-size:14px;">
														抢单
														</p>
														
														
														<?php endif; if($task['join_status'] == 3): ?>
														<span class="fr">奖励已发放</span>
														<?php echo $task['join_audit_time']; ?>
														<p style="font-size:14px;">
														审核
														</p>
														<?php endif; if($task['join_status'] == 4): ?>
														<span class="fr">雇主拒绝了验证</span>
														<?php echo $task['join_audit_time']; ?><br>
													
													<p style="font-size:14px;">审核不通过原因：<?php echo $task['join_reason']; ?></p>
														<?php endif; endif; ?>
												</p>
									
										</div>
								</li>
								<li class="operate ui-flex mb15" style="display:block;">
									<a class="task_button" href="/home/account/chatinfo/task_id/<?php echo $task['id']; ?>" style="color:#2F62FF;border:1px solid #2F62FF">
														联系雇主
									</a>

									 <?php if($task['join_delflag'] == 2): if($task['join_status'] !=4): ?>
											<a href="javascript:;" class="replay_lq task_button" data_id="<?php echo $task['on_task_id']; ?>" style="color:#2F62FF;">重新领取</a>
																			
							 			<?php endif; endif; if($task['join_delflag'] == 1): if($task['join_status'] == 1): ?>
												<a class="task_button" onclick="check(<?php echo $task['id']; ?>)">
												上传验证
												</a>
												<a class="task_button" onclick="remove(<?php echo $task['join_id']; ?>)">
												放弃接单
												</a>
										<?php endif; if($task['join_status'] == 4): ?>
												<a class="task_button" href="/home/account/complaint/id/<?php echo $task['join_id']; ?>.html">申请维权</a>
												<a href="javascript:;" class="task_button" onclick="check(<?php echo $task['id']; ?>)">
												重新接单
												</a>
												
								
										<?php endif; endif; ?>

										
										
										<a class="task_button" href="/home/mytaskjoin/info/id/<?php echo $task['join_id']; ?>.html">查看</a>
										
								</li>

							</ul>
						<?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
        <div class="task-del" style="display:none;">
            <a href="#" class="button4" onclick="MySaveTask.delSave()">删除(0)</a>
        </div>
        <div class="paging" style="display: block;">
            <span class="paging-prev">上一页</span>
            <span class="paging-num-total">
                    <select name="page" class="paging-selct" style="width:auto;padding:0px 10%;border-radius:10px;text-indent:0;">
                        <?php $__FOR_START_26878__=1;$__FOR_END_26878__=$pageCount+1;for($i=$__FOR_START_26878__;$i < $__FOR_END_26878__;$i+=1){ ?>
                        <option value="<?php echo $i; ?>"><?php echo $i; ?></option>
                        <?php } ?>
                    </select>
                </span>
            <span class="paging-next" data-page="<?php echo $pageCount; ?>">下一页</span>
            <form id="page_form">
                <input type="hidden" name="page" value="1">
            </form>
        </div>
        <?php endif; ?>
    </div>
</div>
<style>
    #footer-bar li {
    width: 25%;
    float: left;
    
}
#footer-bar{background:#0d0d0d}
</style>

<footer id="footer-bar" lang="<?php echo $controller; ?>">
      <ul id="tabbar">
      <li><a href="/">
      <img src="/static/home/mobile/images/0011<?php if(in_array($controller,array('index'))): ?>_on<?php endif; ?>.png">
      <b>首页</b></a></li>
      <li><a href="/home/task/category.html"><img src="/static/home/mobile/images/0022<?php if(in_array($controller,array('task'))): ?>_on<?php endif; ?>.png"><b>大厅</b></a></li>

      <li><a href="/home/invite.html"><img src="/static/home/mobile/images/0044<?php if(in_array($controller,array('connection'))): ?>_on<?php endif; ?>.png"><b>推广</b></a></td>
      <li><a href="/home/account.html"><img src="/static/home/mobile/images/0055<?php if(in_array($controller,array('account','charge','fans','vip','feedback','feedback','notice','help'))): ?>_on<?php endif; ?>.png"><b>我的</b></a></li>
      </ul>
</footer>
<script type="text/javascript" src="/static/home/mobile/js/mytaskjoin.js?v=4"></script>
<script type="text/javascript">
function check(id){
  
    window.location.href = "/home/task/detail/id/"+id+".html";
}

function remove(id) {
    $(document).dialog({
        type : 'confirm',
        titleText: '放弃接单',
        content: '确定要放弃任务ID为：' + id + '任务吗？',
        onClickConfirmBtn: function(){
            Common.loading.show();
            $.post('/home/mytaskjoin/del.html', { id: id }, function(res) {
                message(res.message,res.redirect,res.type);
                Common.loading.hide();
            });
        }
    });
}
  $('.replay_lq').click(function(){
  	var index =  $('.replay_lq').index(this);
    $.ajax({
            url: '/home/task/accept.html',
            type: 'POST',
            data:{
         		id:$('.replay_lq').eq(index).attr('data_id')
            },
            dataType: "json",
            success: function (res) {
                message(res.message,res.redirect,res.type);
            },
            error: function () {
                message('请求错误','','error');
            }
        	});
  })
</script>
</body>
</html>